<template>
  <CategorySelector :disabled="false" />
  <SpuList v-if="isShow" @setIsShow="isShow = $event"/>
  <AddSpu v-else @setIsShow="isShow = $event"/>
</template>

<script lang="ts">
export default {
  name: "SPU",
}
</script>

<script lang="ts" setup>
import { ref, watch } from "vue"
import CategorySelector from "@/components/CategorySelector/index.vue"
import SpuList from "./components/SpuList.vue"
import AddSpu from "./components/AddSpu.vue"
const isShow = ref(true)
</script>

<style scoped></style>
